package com.alliky.core.base;

import com.alliky.core.api.ApiService;
import com.alliky.core.net.RxRetrofit;

import io.reactivex.disposables.CompositeDisposable;

public class BaseModel {
    //rxjava订阅者
    protected CompositeDisposable mCompositeDisposable = new CompositeDisposable();
    //
    protected ApiService mService = RxRetrofit.getInstance().create(ApiService.class);

    protected void dispose() {
        mCompositeDisposable.clear();
    }
}
